package com.alib.springcloud.controller;

import com.alib.springcloud.service.PaymentServiceOpenFeign;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@Slf4j
public class OpenFeignController {

    // 使用 feign
    @Resource
    private PaymentServiceOpenFeign ps;

    @GetMapping(value = "/consumer/payment/timeout")
    public String getPaymentById()
    {
        return ps.getPaymentTimeout();
    }



}
